/**
 * 2017年12月14日
 */
package exp.paper;

import exp.algorithm.sic.PeakFinderType;
import exp.algorithm.sic.SiftConverter;
import exp.algorithm.sic.VectorMakerType;
import exp.paper.api.FeatureTransformer;
import weka.core.Instance;
import weka.core.Instances;

/**
 * 3.4.1
 * @author Alex
 *
 */
public class SSFT implements FeatureTransformer {
	PeakFinderType pft;
	VectorMakerType vmt;
	SiftConverter sc = new SiftConverter(pft, vmt);
	public SSFT(PeakFinderType pft,VectorMakerType vmt) {
		this.pft = pft;
		this.vmt = vmt;
	}
	public SSFT() {
		this(PeakFinderType.DENSE,VectorMakerType.STATSHAPE);
	}
	@Override
	public Instances transformInstances(Instances insts) throws Exception {
		return sc.transform(insts);
	}
	@Override
	public Instance transformInstance(Instance inst) throws Exception {
		return sc.transform(inst);
	}
	@Override
	public void rest() throws Exception {
	}
}
